package com.jiaozi.system.enums;

import com.alibaba.fastjson.annotation.JSONType;

import com.jiaozi.base.enums.sys.bean.ITagEnumBean;
import com.jiaozi.base.enums.sys.bean.TagEnumBean;
import com.jiaozi.base.enums.sys.bean.TagEnumStyle;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 菜单类型
 */
@Getter
@AllArgsConstructor
public enum MenuTypeEnum   implements ITagEnumBean {

    DIRECTORY("目录",new TagEnumStyle(TagEnumStyle.TagTypeEnum.primary)),
    MENU("菜单",new TagEnumStyle(TagEnumStyle.TagTypeEnum.success)),
    BUTTON("按钮",new TagEnumStyle(TagEnumStyle.TagTypeEnum.warning));
    private  String msg;
    private TagEnumStyle style;

    @Override
    public String toString() {

        return this.name();
    }
    @Override
    public TagEnumBean getTagBean() {
        return new TagEnumBean(this.getMsg(),this.getStyle());
    }

}
